package com.woniu.guoguo.model;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 
 * </p>
 *
 * @author Richie
 * @since 2020-11-03
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("user")
public class User implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 用户ID
     */
    @TableId(value = "user_id", type = IdType.AUTO)
    private Integer userId;

    /**
     * 用户名
     */
    private String username;

    /**
     * 电话
     */
    private String phone;

    /**
     * 生日
     */
    private String birthday;

    /**
     * 是否会员，0为否，1为是，默认0
     */
    private Integer vip;

    /**
     * 积分
     */
    private Integer score;

    /**
     * 密码
     */
    private String password;

    /**
     * 余额
     */
    private Double balance;

    /**
     * 邀请改用户的用户id
     */
    private Integer upstreamUserId;

    /**
     * 邀请码
     */
    private String invitationCode;


}
